java program to check whether a character is alphabet digit or symbol